package com.huo.task.service;

import com.huo.annotation.TaskLogAnnotation;
import org.quartz.DisallowConcurrentExecution;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.huo.filestransport.service.TaskService;

@DisallowConcurrentExecution
@Component
public class TestService{

	private final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Autowired
	private TaskService taskService;
	
	@TaskLogAnnotation
	public void test(){
		System.out.println("ggggggggggggggggggggggggggggggggggggggggggg");
	}
	/*public void execute(JobExecutionContext context) throws JobExecutionException {
		
		
		
		taskService.Test111();
		logger.info("test========");
		
		try {
			Thread.sleep(5000L);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
*/
}
